const mongoose = require("mongoose");
const shopsSchema = new mongoose.Schema({//创建骨架
    name: String,       // 名称
    address: String,    // 地址
    telephone: String,  // 电话
    desc: String,       // 门店描述
    adminId: { type: mongoose.Schema.Types.ObjectId, ref: "users" }   // 所属门店管理员 id
}, { versionKey: false });
//根据骨架创建模板
const shopsModel = mongoose.model('shops', shopsSchema, "shops");